import request from '@/utils/request'

// 查询电工证统计列表
export function listCertificate(query) {
  return request({
    url: '/ledger/electrician/list',
    method: 'get',
    params: query
  })
}

// 查询电工证统计详细
export function getCertificate(id) {
  return request({
    url: '/ledger/electrician/' + id,
    method: 'get'
  })
}

// 新增电工证统计
export function addCertificate(data) {
  return request({
    url: '/ledger/electrician',
    method: 'post',
    data: data
  })
}

// 修改电工证统计
export function updateCertificate(data) {
  return request({
    url: '/ledger/electrician',
    method: 'put',
    data: data
  })
}

// 删除电工证统计
export function delCertificate(id) {
  return request({
    url: '/ledger/electrician/' + id,
    method: 'delete'
  })
}
export function exportCertificate(query) {
  return request({
    url: '/ledger/electrician/export',
    method: 'get',
    params: query
  })
}
export function optionselect() {
  return request({
    url: '/system/post/optionselect',
    method: 'get'
  })
}
